package org.gangcai.mac.shop.bean;

import android.os.Parcel;
import android.os.Parcelable;

public  class AddressItemBean implements Parcelable {
        /**
         * id : 3
         * name : too噢噢噢哦哦
         * mobile : 155555
         * city : 北京市北京市东城区
         * address : 接口
         */

        private String id;
        private String name;
        private String mobile;
        private String city;
        private String address;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.mobile);
        dest.writeString(this.city);
        dest.writeString(this.address);
    }

    public AddressItemBean() {
    }

    protected AddressItemBean(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.mobile = in.readString();
        this.city = in.readString();
        this.address = in.readString();
    }

    public static final Parcelable.Creator<AddressItemBean> CREATOR = new Parcelable.Creator<AddressItemBean>() {
        @Override
        public AddressItemBean createFromParcel(Parcel source) {
            return new AddressItemBean(source);
        }

        @Override
        public AddressItemBean[] newArray(int size) {
            return new AddressItemBean[size];
        }
    };
}